#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
	char s[16], buf[8];
	int a, b, h_pos, t_pos, len, i;
	a = 0; b = 0;
	h_pos = 0; t_pos = 0;

	scanf("%s", s);
	len = strlen(s);

	i = 0;
	h_pos = i;
	for (; i < len; i++) {
		if (s[i] == '*') {
			t_pos = i;
			int blen = t_pos-h_pos;
			strncpy(buf, s+h_pos, blen);
			buf[blen] = '\0';
			a = atoi(buf);
			h_pos = t_pos + 1;
			t_pos = h_pos;
			continue;
		}
		
		if (s[i] == '=') {
			t_pos = i;
			int blen = t_pos-h_pos;
			strncpy(buf, s+h_pos, blen);
			buf[blen] = '\0';
			b = atoi(buf);
			break;
		}
	}

	printf("%.0f\n", ((double)a)*b);

	return 0;
}
